Skip to main content
Version: 1.0.0

Verify device sn & checkCode match

Usage Scenario: Typically, when your customer adds a device for the first time on your EMS platform, you can proactively call this interface to verify that this binding by the customer is a legitimate behavior.CheckCode can be found in the device's instruction manual,or on the package.

✨ Example

Request

curl --location -g '{{EU}}/device/checkCodeAndSn?deviceSn=A11230010013204A&checkCode=0594424' \
--header 'token: xxxx'

Response ①

{
"errorCode": 0,
"info": null,
"body": true,
"successful": true
}

Response ②

{
"errorCode": 1,
"info": {
"code": "error.70011",
"description": "The serial number and the check code do not match"
},
"body": null,
"successful": false
}